﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GrainManage.Model
{
    public class StatusCode
    {
        //Common
        public const int Failed = 0;
        public const int Success = 1;
        public const int IdentityFailed = 2;
        public const int NoData = 9;

        //Server
        public const int Undefined = 21;
        public const int TimeOut = 22;
        public const int IOError = 23;
        public const int UnknownError = 24;
        public const int InvalidInput = 25;
        public const int InsertFailed = 26;
        public const int UpdateFailed = 27;
        public const int DeleteFailed = 28;
        public const int FileNotExist = 29;
        public const int FileHasExist = 30;
        public const int BatchInsertFailed = 36;
        public const int BatchUpdateFailed = 37;
        public const int BatchDeleteFailed = 38;

        //Login
        public const int NameEmpty = 502;
        public const int PwdEmpty = 503;
        public const int NameNotExist = 504;
        public const int PwdNotMatch = 505;
        public const int UserNotActivated = 508;
        public const int NameExist = 510;

    }
}
